Skip to content

fix(app): state management interaction tools#407

Merged
DarianM merged 32 commits intomainfrom
banner-render
Oct 20, 2025
Merged

fix(app): state management interaction tools#407
DarianM merged 32 commits intomainfrom
banner-render

Conversation

@DarianM
Copy link
Copy Markdown
Member

@DarianM DarianM commented Oct 10, 2025

Changes

Fix state subscription pattern in banner builder, causing the component to not behave whenever any property in the configuration object changed.

  • Read data from snapshots passed down as prop, otherwise use the source proxy state to change state.
  • Do not pass profile as prop to the BannerProfile instead use snapshot in component as it re-rendered the entire route.
  • Incorect import and use of UIStore provider caused entire app to re-render

@DarianM DarianM requested a review from sidvishnoi October 10, 2025 18:43
Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I see some abstraction opportunities.

Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/redesign/components/ThumbnailSelector.tsx Outdated
Comment thread frontend/app/stores/uiStore.tsx
Base automatically changed from subscribe to main October 14, 2025 08:33
Comment thread frontend/app/components/redesign/components/ToolsWalletAddress.tsx Outdated
@DarianM
Copy link
Copy Markdown
Member Author

DarianM commented Oct 14, 2025

there's a bug somewhere causing the dirty tabs to not update in real time, again. looking 👀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 14, 2025

Deployment results

Worker Alias URL Outcome
API - staging success
CDN - staging success
App - 12da2b78 success

Logs #18648132115

@DarianM
Copy link
Copy Markdown
Member Author

DarianM commented Oct 14, 2025

there's a bug somewhere causing the dirty tabs to not update in real time, again. looking 👀

proper use of valtio proxySet solved this; can test the preview

Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/components/banner/BannerBuilder.tsx Outdated
Comment thread frontend/app/hooks/useCurrentConfigSnapshot.ts Outdated
Comment thread frontend/app/components/redesign/components/builder/DescriptionInput.tsx Outdated
Comment thread frontend/app/components/banner/BannerThumbnailSelector.tsx Outdated
Comment thread frontend/app/components/banner/BannerPreview.tsx Outdated
@sidvishnoi
Copy link
Copy Markdown
Member

@DarianM The preview broke at some stage 😭

Screen.Recording.2025-10-17.at.15.54.01.mov

@DarianM DarianM requested a review from sidvishnoi October 18, 2025 09:06
@sidvishnoi sidvishnoi changed the title fix(frontend): state management banner route fix(app): state management banner route Oct 18, 2025
Comment thread frontend/app/components/banner/BannerPreview.tsx Outdated
Comment thread frontend/app/stores/toolStore.ts Outdated
Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bring in changes for widget route as well, otherwise it'll be broken if this PR is merged.

@DarianM DarianM requested a review from sidvishnoi October 20, 2025 08:06
@DarianM DarianM changed the title fix(app): state management banner route fix(app): state management interaction tools Oct 20, 2025
Comment thread frontend/app/stores/toolStore.ts
@DarianM DarianM merged commit cc09e99 into main Oct 20, 2025
5 checks passed
@DarianM DarianM deleted the banner-render branch October 20, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants